<template>

    <section class="point">
      <div class="question">
        <div class="mask">
        <h2>热点城市房价是否继续疯涨</h2>
        <p>610期</p>
          <div class="result">
          <p><span>正方</span><span>反方</span></p>
          <progress value="75" max="100"></progress>
          <p><span>75%</span><span>35%</span></p>
        </div>
        <a href="#">进入专题</a>
      </div>
      </div>
      <div class="prev">
        <div class="list" v-for='p in points'>
            <div class="mask">
              <span class="times">{{p.times}}</span>
              <h2>{{p.title}}</h2>
              <p>{{p.msg}}</p>
              <a class="join" href="javascript: void(0);">> </a>
            </div>
        </div>
      </div>
    </section>

</template>

<script>
import store from '../stores/index'
import { mapState } from 'vuex'
export default {
  name: 'point',
  store,
  computed: {
    ...mapState({
      points: state => state.pointStore.points
    })
  }
}
</script>

<style lang="stylus">
  .point{
color: #fff;
background: #fff;

  }
.point .question{
  height: 180px;
  background: url(../assets/pointBg.jpg);
  background-size: 100% 100%;

  a{
    position: absolute;
    color: red;
    bottom: 10px;
    right: 10px;
  }
}
.point .question .mask{
display: flex;
justify-content: center;
-webkit-box-pack: center;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
flex-direction: column;
-webkit-box-align: center;
align-items: center;
height: 100%;
width: 100%;
position: relative;
background: rgba(0,0,0,0.6);

h2{
  font-size: 20px;
  font-weight: bold;
}

p{
  font-size: 16px;
  margin: 8px 0 ;
}
}
.result{
height: 100px;
width: 80%;
  p{
      display: flex;
    justify-content: space-between;
  }
progress {
  width: 100%;
  background-color: #058;
  color: #e94c3d;
}
}
.point .prev{
 padding: 10px;

.list{
  height: 150px;
  width: 100%;
  margin-bottom: 10px;
  overflow: hidden;
  background: url(../assets/pointBg.jpg);
  background-size: 100%;
  .mask{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);


    .times{
      position: absolute;
      left: 10px;
      top: 0;
      color: #eee;
      display: inline-block;
      padding: 2px;
      font-size: 13px;
    }


      p{
        color: #eee;
        margin: 10px 20px;
        line-height: 1.3;
        font-size: 13px;
        overflow: hidden;
        display: -webkit-box;
        word-break: break-all;
        -webkit-line-clamp: 2;
        text-overflow: dllipsis;
        -webkit-box-orient: vertical;
      }
      .join{
          position: absolute;
            right: 5px;
            bottom: 0;
            color: red;
            display: inline-block;
            padding: 10px;
            font-size: 13px;
      }
  }

}

}


</style>
